namespace CKS.EBE.Linkbacks
{
    internal static class Globals
    {
        /// <summary>
        /// CKSEBETrackbackJob
        /// </summary>
        internal const string TrackbackJobSettingsId = "CKSEBETrackbackJob";

        /// <summary>
        /// CKS:EBE Trackback Job
        /// </summary>
        internal const string JobName = "CKS:EBE Trackback Job";

        /// <summary>
        /// http://www.w3.org/1999/02/22-rdf-syntax-ns#
        /// </summary>
        internal const string RdfXmlnsUri = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";

        /// <summary>
        /// http://madskills.com/public/xml/rss/module/trackback/
        /// </summary>
        internal const string TrackbackRdfXmlnsUri = "http://madskills.com/public/xml/rss/module/trackback/";

        /// <summary>
        /// Linkbacks Sent
        /// </summary>
        internal const string LinkbackHistoryListTitle = "Linkbacks Sent";

        /// <summary>
        /// Linkbacks Received
        /// </summary>
        internal const string LinkbacksReceivedListName = "Linkbacks Received";

        /// <summary>
        /// {0} = local blog post ID, {1} = URL of linking post
        /// </summary>
        internal const string QueryForDuplicateReceivedLinkback =
            @"<Where>
                <And>
                    <Eq>
                        <FieldRef Name='PostTitle' LookupId='True' />
                        <Value Type='Lookup'>{0}</Value>
                    </Eq>
                    <Contains>
                        <FieldRef Name='LinkingPost' />
                        <Value Type='URL'>{1}</Value>
                    </Contains>            
                </And>                                                    
            </Where>"; // {0} = local blog post ID, {1} = URL of linking post
    }
}